package com.hnu.model;

import java.util.HashSet;
import java.util.Set;


/**
 * User entity. @author MyEclipse Persistence Tools
 */

public class User  implements java.io.Serializable {


    // Fields    

     private Long userId;
     private String userName;
     private String password;
     private String email;
     private Set userbookmarks = new HashSet(0);
     private Set bookmarkpreferences = new HashSet(0);


    // Constructors

    /** default constructor */
    public User() {
    }

	/** minimal constructor */
    public User(String userName, String password, String email) {
        this.userName = userName;
        this.password = password;
        this.email = email;
    }
    
    /** full constructor */
    public User(String userName, String password, String email, Set userbookmarks, Set bookmarkpreferences) {
        this.userName = userName;
        this.password = password;
        this.email = email;
        this.userbookmarks = userbookmarks;
        this.bookmarkpreferences = bookmarkpreferences;
    }

   
    // Property accessors

    public Long getUserId() {
        return this.userId;
    }
    
    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return this.userName;
    }
    
    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return this.password;
    }
    
    public void setPassword(String password) {
        this.password = password;
    }

    public String getEmail() {
        return this.email;
    }
    
    public void setEmail(String email) {
        this.email = email;
    }

    public Set getUserbookmarks() {
        return this.userbookmarks;
    }
    
    public void setUserbookmarks(Set userbookmarks) {
        this.userbookmarks = userbookmarks;
    }

    public Set getBookmarkpreferences() {
        return this.bookmarkpreferences;
    }
    
    public void setBookmarkpreferences(Set bookmarkpreferences) {
        this.bookmarkpreferences = bookmarkpreferences;
    }
   








}